﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：RefreshTokenDto.cs
// 功能描述：TongTongMall.MallWeb.Application
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Common.AutoMapper;
using TongTongMall.MallWeb.Core.Authorization;

namespace TongTongMall.MallWeb.ApplicationToken.Dto
{
    [AutoMap(typeof(RefreshToken))]
    public class RefreshTokenDto
    {
        /// <summary>
        /// 刷新token
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int TicketVersion { get; set; }

        /// <summary>
        /// 客户端ID
        /// </summary>
        public long ClientId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime IssuedUtc { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime ExpiresUtc { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ProtectedTicket { get; set; }

        /// <summary>
        /// 最后一次授权时的用户名
        /// </summary>
        public string LastAuthorizationUserName { get; set; }

        /// <summary>
        /// 授权平台
        /// </summary>
        public string AuthorizationPlatFrom { get; set; }
    }
}
